home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 43.zip / ANC 21.adf / d.doc < prev    next >
Text File  |  1988-01-19  |  11KB  |  288 lines

  1. ----------------
  2. DiskX V2.2
  3. By STEVE TIBBETT
  4. ----------------
  5.  
  6. This manual is created chronologically.  When I add new features, I tack
  7. the description onto the end.  If you have used DiskX before, skip ahead to
  8. the notes on whatever version is new to you.
  9.  
  10. This special edition of DiskX adds a "bootsave" feature that will let
  11. you store boot blocks of protected commercial software, to protect them
  12. should a virus attack the original.
  13.  
  14.  
  15. INTRODUCTION:
  16.  
  17. DiskX's main purpose in life is to be a sector-based disk editor, as
  18. opposed to a file-based editor such as NewZap.    DiskX can also be used
  19. as a file editor.  That will be discussed a bit later on.
  20.  
  21. DiskX lets you view the disk in a block-by-block format.  It also lets
  22. you find strings of text anywhere on the disk, find the first block of any
  23. file, to view each block either as the mass of hex numbers it really is, and
  24. to view the block as what it represents to AmigaDOS (i.e., file header
  25. block, user directory block and such.  The different block types there can be
  26. found in the AmigaDOS Manual by Bantam Books.
  27.  
  28. Important Note: When you run DiskX, it will leave the motor running on
  29. whatever floppy drive you are currently examining.  Don't worry about it.
  30.  
  31.  
  32. WHAT IS A DOS DEVICE?
  33.  
  34. DiskX lets you look at anything that AmigaDOS sees as a device.  If you
  35. have a hard disk, there should be a hddisk.device, jdisk.device, or
  36. something similar in the DEVS: directory on your Workbench disk.  This also
  37. goes for the VD0: recoverable ram disk, which has asdg.vdisk.device there.
  38.  
  39. Note that the RAM: disk is not really a DOS device.  It is managed by
  40. the RAM-HANDLER in the L directory, making it ineligible.
  41.  
  42. Also, DiskX will not allow you to look at the PAR:, PRT:, SER:, NIL:,
  43. or anything else that isn't a device, because printers and modems don't like
  44. being asked to return a specific cylinder.
  45.  
  46.  
  47. RUNNING IT
  48.  
  49. When you first run DiskX, there is a menu on the menu bar called "Unit",
  50. and on this menu will be all the "Devices" the system recognizes at the
  51. time.  It will also show you the name of the "Driver" that controls that
  52. device - "trackdisk.device" for a floppy and the like.
  53.  
  54. Workbench 1.3 includes a recoverable RAM: disk called "RAD:".  To DiskX,
  55. this is just another device.
  56.  
  57.  
  58. MODES OF OPERATION
  59.  
  60. DiskX has two modes of operaiton: HEX mode and INTERPRET mode.
  61.  
  62.  
  63. HEX MODE
  64.  
  65. Hex Mode will allow you to look at what is actually in the block, 256
  66. bytes at a time.  If you are looking at the first half of the block, the
  67. offset will be less than 100 (in hex).  The offset is displayed at the
  68. bottom right of the screen and reflects the current cursor position.
  69.  
  70. The cursor can be moved around either with the mouse point and click or
  71. with the cursor keys.
  72.  
  73. While in hex mode, pressing the Return key will let you to enter ASCII
  74. text, starting at the current cursor position.    Move the cursor to where you
  75. want to start, press Return, type your text, then press Return again.  Note
  76. that the cursor keys will not work when you are entering text, but the mouse
  77. pointer will still allow you to move the cursor.
  78.  
  79. When in Hex Mode, there are a couple of extra gadgets (the square,
  80. obnoxious-looking things) that pop up on the bottom of the screen.  There are
  81. the "Other Half" gadget, which will show you the other half of the block;
  82. the modify gadget, which will let you edit contents of that byte in either
  83. hex, decimal, or binary; and the show type gadget, which will flip you into
  84. interpret mode.
  85.  
  86. If you are running DiskX from the CLI, you can enter a commandline
  87. argument "INTERLACE," which will cause DiskX to run in Interlaced mode,
  88. showing you all 512 bytes of a block on one screen.
  89.  
  90.  
  91. INTERPRET MODE
  92.  
  93. This is where the excitement lies!
  94.  
  95. In Interpret mode, instead of just showing you what is in the block as
  96. hex, it tries to make some sense out of the block the same way AmigaDOS
  97. does, showing only the contents of the block that are relevant to that block
  98. type.  For example, if the block is a data block, you will see the contents
  99. of actual DATA part of the block in the middle of the screen, and at the top
  100. of the screen you will see where that block's file header block is located,
  101. its sequence number, location of the next block and size of that next block.
  102.  
  103. When you're in Interpret mode, a few other keys come into play, also
  104. depending on what type of block you are examining.  The left and right cursor
  105. keys will move up/down by one block.
  106.  
  107. R will move you to that disk's root block.  P will bring you to that
  108. block's parent block, if it has one.  N will bring you to the next block, if
  109. the current block type supports it.  W will tell it to write the block back
  110. to the disk, and E does won't do a darn thing.
  111.  
  112. Also, if the block type supports it, you will get either a "First Block",
  113. "Next Block", or a "Parent Block" gadget on the screen.
  114.  
  115.  
  116. FIND
  117.  
  118. Find will let you search for a string of text.    Type the string, then
  119. select either to start from Here (the current Block Number), or Block #0.
  120.  
  121.  
  122. KEY NUMBER VERSUS BLOCK NUMBER
  123.  
  124. The terms "key" and "block" get used fairly often here - they both mean
  125. the same thing.  They refer to the current block number, which is how far
  126. into the disk we are in 512 byte blocks.
  127.  
  128.  
  129. PARENT BLOCK AND HEADER BLOCK
  130.  
  131. These two terms end up being used a good bit in the program.  Again, they
  132. both mean the same thing: that this block is pointed to.
  133.  
  134.  
  135. GETTING OUT
  136.  
  137. All good things must come to an end, and you've got three ways to end
  138. it all from here: press the ESC key, click on the quit gadget, or use the
  139. quit menu option.  And you're out.
  140.  
  141.  
  142. NOTES
  143.  
  144.      -- DiskX will only work properly on devices which use a 512 byte block.
  145. I have yet to see one that uses a different size block, so it didn't seem
  146. like a big problem.
  147.  
  148.      -- If you want to change anything on your KickStart disk, there is a
  149. public domain program called SumKick, which will fix the checksum on the KS
  150. disk for you after you've changed it. Otherwise, whenever you Reboot, it
  151. will want back Kickstart.
  152.  
  153.  
  154. USES
  155.  
  156. Here are some uses:
  157.  
  158.      -- If you live in Canada, (like all the real people in the world, eh?
  159. Turn the heat up, Bob.), you can take any program which refers to "State"
  160. and change it to refer to "Prov." using the Find command.
  161.  
  162.      -- You can find hidden messages in your Kickstart disk.
  163.  
  164.      -- You can dig through your favorite game to find all kinds of strings
  165. which may be helpful.
  166.  
  167.      -- You can waste a lot of time going through programs which hide any
  168. ASCII text contained in them.
  169.  
  170.      -- Using the Write Block to File option, you could take any
  171. auto-booting disk (the kind that uses the boot sector to load the game),
  172. write it to a file, and disassemble it or whatever.
  173.  
  174.  
  175. NEW FEATURES
  176.  
  177. The following are features that were new with the 2.0 release:
  178.  
  179.      -- Works with any DOS device, include hard disks.
  180.  
  181.      -- Ability to search the disk for ASCII strings without being
  182. case-sensitive.
  183.  
  184.      -- Ability to recover a deleted file from any device.
  185.  
  186.      -- Ability to view all ASCII strings on the disk in a simple manner.
  187.  
  188.  
  189. USING OTHER DOS DEVICES
  190.  
  191. DiskX will now read the DeviceList and find any device you are using in
  192. the system, if it is a block-based device.  If your favorite device isn't on
  193. the "Unit" menu, here's how to get it:  bring up the "Find File" requester
  194. from the Project menu, and type the device name into the drawer area. That
  195. should do it - if you go for "Disk Info" on the same menu, you will see
  196. info on it.
  197.  
  198.  
  199. CASE-INDEPENDENT SEARCH
  200.  
  201. When you search (using the Find... gadget on the main screen), if the
  202. first character of the pattern you are searching for is an asterisk ( * ).
  203. it will ignore the case of the string it is seeking.  If you tell it to
  204. search for *Hello, it would find Hello, hELLO, HeLlO and other variations.
  205.  
  206. If the first character of the pattern you enter to seek is an "@"
  207. (at sign), DiskX will treat this as though you were looking for a file name.
  208. It will ignore case and will only stop at blocks which are file headers
  209. whose file name matches this pattern.  More on this later.
  210.  
  211.  
  212. SEARCHING FOR TEXT STRINGS
  213.  
  214. You can now search the whole disk, starting at either block zero, or
  215. from the current position, for any ASCII text.    It will display any text
  216. string longer than six characters.  It's a menu option.  Also, if you select
  217. the "Through Links" option, you can start searching from a file header
  218. (using the "Find File Header" menu option to find the file header) to search
  219. through a particular file for text.  Also, take a look through the Kickstart
  220. disk. There is much interesting material there.
  221.  
  222.  
  223. RECOVERING FILES
  224.  
  225. You've just deleted a file.  The file's name is LostFile, and it is on
  226. DH0:. Here's how to get it back:
  227.  
  228. 1.  Select the DH0: menu option on the Project menu in the Unit Number
  229.     submenu.  Same thing applies for any device.
  230.  
  231. 2.  Click on the Find... gadget on the bottom of the main screen.  Tell
  232.     it to search for "@LostFile".  This will find LostFile's file header
  233.     block and make it the current block.  Remember that the @ sign tells
  234.     DiskX you're looking for a file header.  You will probably have to try
  235.     the "Show Type" gadget to get it to tell you that it is a file header.
  236.     Note that doing a Find on a hard disk can take a good bit of time.
  237.  
  238. 3.  Select the "Recover..." menu option. DiskX will then search the entire
  239.     disk for any block whose parent block field points to the file header
  240.     for LostFile.  That's block belonging to Lostfile.
  241.  
  242. 4.  When the search is completed there will be a file requester asking
  243.     you where you want the file to be written.    DO NOT WRITE THE FILE TO
  244.     THE SAME DEVICE FROM WHICH YOU ARE RECOVERING IT.  While the chances
  245.     are you won't have any major problems doing it, things could go wrong.
  246.     A safe place to write to is the RAM: disk, and it's the default drive
  247.     when this requester appears.
  248.  
  249. 5.  After you've entered the new name for the file here, choose OK or press
  250.     Return, and the file will be recovered.  That's it.
  251.  
  252.  
  253. NEW FEATURES TO 2.1
  254.  
  255. Bug Fixes: No longer writes back to wrong HD partition
  256.  
  257.  
  258. NEW TO 2.2
  259.  
  260. The "bootsave": feature.
  261.  
  262.  
  263. RECOVERING FILES THE HARD WAY
  264.  
  265. On the special menu, there is an option to write the current block to a
  266. file.  The first time you select this option, you will be asked for the file
  267. name into which you want to write the data.  Each time you go for this option
  268. after that, it will write the block into the same file, if you haven't
  269. closed it already.
  270.  
  271. If you plan to write a number of blocks during the same session, don't
  272. close the file after each write.  Wait until you have written all you want
  273. and then close the file.
  274.  
  275. If the block you are writing is a data block (part of a file), only the
  276. data part of the block (488 bytes) will be written; otherwise, all 512
  277. bytes, including the block's checksum, will be written.
  278.  
  279. If you forget to close the file on quitting, DiskX closes it for you.
  280.  
  281. If when you first select the drive, the block you see is not of type
  282. root block, you will have to go up or down a cylinder or two to find it.
  283. It's just a minor task.  Also, the "Disk Info" menu option will show the
  284. disk's name wrong.
  285.  
  286. END OF TEXT
  287.  
  288.